package com.houweishi.module.postrecord.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.houweishi.common.annotation.Excel;
import com.houweishi.common.core.domain.BaseEntity;

/**
 * 调岗记录对象 biz_post_record
 * 
 * @author houweishi
 * @date 2023-02-25
 */
public class BizPostRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 用户id */
//    @Excel(name = "用户id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 员工id */
//    @Excel(name = "员工id")
    private Long staffId;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String staffName;

    /** 部门id */
//    @Excel(name = "部门id")
    private Long deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 现职位id */
//    @Excel(name = "现职位id")
    private Long postId;

    /** 现职位 */
    @Excel(name = "现职位")
    private String position;

    /** 目标职位id */
//    @Excel(name = "目标职位id")
    private Long targetPostId;

    /** 目标职位 */
    @Excel(name = "目标职位")
    private String targetPosition;

    /** 调岗时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "调岗时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date transferTime;

    /** 调岗原因 */
    @Excel(name = "调岗原因")
    private String reason;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 所属租户 */
//    @Excel(name = "所属租户")
    private Long tenantId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }
    public void setStaffName(String staffName) 
    {
        this.staffName = staffName;
    }

    public String getStaffName() 
    {
        return staffName;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setDeptName(String deptName) 
    {
        this.deptName = deptName;
    }

    public String getDeptName() 
    {
        return deptName;
    }
    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setTargetPostId(Long targetPostId) 
    {
        this.targetPostId = targetPostId;
    }

    public Long getTargetPostId() 
    {
        return targetPostId;
    }
    public void setTargetPosition(String targetPosition) 
    {
        this.targetPosition = targetPosition;
    }

    public String getTargetPosition() 
    {
        return targetPosition;
    }
    public void setTransferTime(Date transferTime) 
    {
        this.transferTime = transferTime;
    }

    public Date getTransferTime() 
    {
        return transferTime;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("staffId", getStaffId())
            .append("staffName", getStaffName())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("postId", getPostId())
            .append("position", getPosition())
            .append("targetPostId", getTargetPostId())
            .append("targetPosition", getTargetPosition())
            .append("transferTime", getTransferTime())
            .append("reason", getReason())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("tenantId", getTenantId())
            .toString();
    }
}
